class CreateSongs < ActiveRecord::Migration
  def up
    create_table :songs do |t|
      t.string :title, null: false
      t.string :artist
      t.date :published_at
      t.text :lyrics

      t.timestamps
    end
    add_index :songs, :published_at
  end

  def down
    drop_table :songs
  end
end
